home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
MacWorld 1999 July
/
Macworld (1999-07).dmg
/
Shareware World
/
Info
/
For Developers
/
Mops 3.4.sea
/
Mops source
/
Toolbox classes
/
Alert
next >
Wrap
Text File
|
1997-11-11
|
605b
|
38 lines
\ Alert support.
enum{ StopAlertType NoteAlertType CautionAlertType }
:class ALERT super{ x-array }
int RESID
int TYPE
:m SHOW:
get: resID 0 ( procID ) get: type
SELECT[ StopAlertType ]=> StopAlert
[ NoteAlertType ]=> NoteAlert
[ CautionAlertType ]=> CautionAlert
DEFAULT=> drop Zlert
]SELECT
dup 0>
IF 1- exec: super
ELSE drop
THEN ;m
:m INIT: \ ( xt1 ... xtN N resID -- )
put: resID put: super ;m
:m SETTYPE:
put: type ;m
:m DISP: \ ( resID type -- )
put: type put: resID show: self ;m
:m CLASSINIT:
16 put: type
classinit: super ;m
;class